package com.gzhu.knowledgeAdmin.common.vo;

import com.gzhu.knowledgeAdmin.common.valid.AddGroup;
import com.gzhu.knowledgeAdmin.common.valid.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.util.List;

/**
 * @author laoba
 * @create 2023-04-26 9:33
 */
@Data
public class KnowledgeAddOrUpdateVo {
    @NotBlank(groups = {UpdateGroup.class})
    @Null(groups = {AddGroup.class})
    // TODO : 前端修改知识时，记得改这个字段
    private Integer id;

    @NotBlank(groups = {AddGroup.class})
    private String zsbt;

    @NotNull(groups = {AddGroup.class})
    private List<Integer> zslxIds;

    @NotBlank(groups = {AddGroup.class})
    private String wtnr;

    private String wttyj;

    @NotBlank(groups = {AddGroup.class})
    private String hdnr;

    private String hdtyj;

    private String fj;

}
